package com.party.core.model.photo;

import com.party.core.model.BaseModel;

/**
 * @Description: 用户操作
 * @Author: yangshoukun
 * @Date: 2018/5/29 17:59
 */
public class PhotosMemberOperate extends BaseModel {

    private static final long serialVersionUID = 2383505453068478373L;
    // 用户编号
    private String memberId;
    // 项目id
    private String photosId;
    // 操作次数
    private Integer operateNum;
    // 浏览次数
    private Integer viewNum;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getPhotosId() {
        return photosId;
    }

    public void setPhotosId(String photosId) {
        this.photosId = photosId;
    }

    public Integer getOperateNum() {
        return operateNum;
    }

    public void setOperateNum(Integer operateNum) {
        this.operateNum = operateNum;
    }

    public Integer getViewNum() {
        return viewNum;
    }

    public void setViewNum(Integer viewNum) {
        this.viewNum = viewNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof PhotosMemberOperate)) return false;
        if (!super.equals(o)) return false;

        PhotosMemberOperate that = (PhotosMemberOperate) o;

        if (memberId != null ? !memberId.equals(that.memberId) : that.memberId != null) return false;
        if (photosId != null ? !photosId.equals(that.photosId) : that.photosId != null) return false;
        if (operateNum != null ? !operateNum.equals(that.operateNum) : that.operateNum != null) return false;
        return viewNum != null ? viewNum.equals(that.viewNum) : that.viewNum == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (memberId != null ? memberId.hashCode() : 0);
        result = 31 * result + (photosId != null ? photosId.hashCode() : 0);
        result = 31 * result + (operateNum != null ? operateNum.hashCode() : 0);
        result = 31 * result + (viewNum != null ? viewNum.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "PhotosMemberOperate{" +
                "memberId='" + memberId + '\'' +
                ", photosId='" + photosId + '\'' +
                ", operateNum=" + operateNum +
                ", viewNum=" + viewNum +
                '}';
    }
}
